﻿using System;
using FreeSql.DataAnnotations;

namespace App.Model.Main
{
    /// <summary>
    /// 系统平台
    /// </summary>
    //[Table(Name = "sys_platform")]
    [Index("uk_{tablename}_EnName", nameof(EnName), true)]
    public class SysPlatform : EntityBase<int>
    {
        /// <summary>
        /// 平台名
        /// </summary>
        [Column(StringLength = 20, IsNullable = false)]
        public string Name { get; set; }

        /// <summary>
        /// 平台英文名 唯一
        /// </summary>
        [Column(StringLength = 200, IsNullable = false)]
        public string EnName { get; set; }

        /// <summary>
        /// 接口访问前缀
        /// </summary>
        [Column(StringLength = 200, IsNullable = false)]
        public string ApiPrefix { get; set; }

        /// <summary>
        /// 首页前端路由地址
        /// </summary>
        [Column(StringLength = 2000)]
        public string RouterPath { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [Column(StringLength = 200)]
        public string Icon { get; set; }
    }
}


